/*
 * @Descripttion: 
 * @version: 
 * @Author: -ViJia
 * @Date: 2022-03-17 10:12:16
 * @LastEditors: -ViJia
 * @LastEditTime: 2022-03-23 17:04:32
 */
import request from '@/utils/request';

// 订单管理
// export const GetOrderList = data => request.post('steward/order/ProductOrder/index', data); // 商品订单列表
// export const GetOrderInfo = data => request.post('steward/order/ProductOrder/view', data); // 商品订单详情
// export const ExportOrder = data => request.post('steward/order/ProductOrder/export',data,{ responseType: 'blob' }); //商品订单导出

// 获取用户动态路由
export const GetBaseMenuTree = data => request.post('manager/menu/getBaseMenuTree', data); //获取所有menu
export const GetMenuAuthority = data => request.post('manager/menu/getMenuAuthority', data); //获取指定角色menu
export const AddMenuAuthority = data => request.post('manager/menu/addMenuAuthority', data); //设置角色menu权限
export const GetBaseMenuById = data => request.post('manager/menu/getBaseMenuById', data); //根据id获取菜单menu

// 平台用户管理
export const GetUserList = data => request.get('manager/cliuser/getUserList', {'params':data}); //用户列表
export const GetBabyListData = data => request.get('manager/cliuser/getUserBabyList', {'params':data}); //宝宝列表
export const GetBabyInfo = data => request.get('manager/cliuser/getBabyInfo', {'params':data}); //宝宝信息
export const GetUserCollectList = data => request.get('manager/cliuser/getUserCollectList', {'params':data}); //获取用户收藏食谱
export const DelUserCollect = data => request.post('manager/cliuser/delUserCollect', data); //删除收藏食谱
export const DelUser = data => request.post('manager/cliuser/delUser', data); //删除用户
export const GetBabyAllergyList = data => request.get('manager/cliuser/getBabyAllergyList', {'params':data}); //宝宝过敏列表
export const GetBabyPlanList = data => request.get('manager/cliuser/getBabyPlanList', {'params':data}); //宝宝辅食计划列表

// 权限管理
export const GetMenuList = data => request.post('manager/menu/getMenuList', data); //获取基础menu列表
export const AddBaseMenu = data => request.post('manager/menu/addBaseMenu', data); //新增menu
export const UpdateBaseMenu = data => request.post('manager/menu/updateBaseMenu', data); //编辑menu
export const DeleteBaseMenu = data => request.post('manager/menu/deleteBaseMenu', data); //删除menu

export const GetAuthorityList = data => request.post('manager/authority/getAuthorityList', data); //获取角色列表
export const CreateAuthority = data => request.post('manager/authority/createAuthority', data); //创建角色
export const UpdateAuthority = data => request.post('manager/authority/updateAuthority', data); //更新角色
export const DeleteAuthority = data => request.post('manager/authority/deleteAuthority', data); //删除角色


// 管理员管理
export const GetAdminUserList = data => request.post('manager/user/getUserList', data); //获取管理员列表
export const AdminRegister = data => request.post('manager/user/admin_register', data); //新增管理员
export const SetAdminInfo = data => request.put('manager/user/setUserInfo', data); //修改管理员
export const DeleteUser = data => request.delete('manager/user/deleteUser', {'data':data}); //删除管理员
export const GetUserInfo = data => request.get('manager/user/getUserInfo', {'params':data}); //获取管理员信息

// 获取区域信息
export const GetProvinceList = data => request.post('/api/root/base/Region/getProvinceList', data); //获取省份列表
export const GetCityList = data => request.post('/api/root/base/Region/getCityList', data); //获取城市列表
export const GetDistrictList = data => request.post('/api/root/base/Region/getDistrictList', data); //获取地区列表


// 新医药
// 医院管理
export const HospitalList = data => request.post('/api/root/hospital/Hospital/index', data); //获取医院列表
export const HospitalAdd = data => request.post('/api/root/hospital/Hospital/add', data); //新增医院
export const HospitalDelete = data => request.post('/api/root/hospital/Hospital/del', data); //删除医院
export const HospitalEdit = data => request.post('/api/root/hospital/Hospital/edit', data); //编辑医院
export const HospitalView = data => request.post('/api/root/hospital/Hospital/view', data); //查询医院信息

// 医院采购管理
export const HospitalPurchaseOrder = data => request.post('/api/root/hospital/HospitalPurchaseOrder/index', data); //获取医院采购业务列表
export const HospitalPurchaseOrderAdd = data => request.post('/api/root/hospital/HospitalPurchaseOrder/add', data); //新增医院采购业务
export const HospitalPurchaseOrderEdit = data => request.post('/api/root/hospital/HospitalPurchaseOrder/edit', data); //编辑医院采购业务
export const HospitalPurchaseOrderView = data => request.post('/api/root/hospital/HospitalPurchaseOrder/view', data); //查看医院采购业务
export const HospitalPurchaseOrderDelete = data => request.post('/api/root/hospital/HospitalPurchaseOrder/del', data); //删除医院采购业务

export const GetProductList = data => request.post('/api/root/hospital/HospitalPurchaseOrder/getProductList', data); //获取药品列表
export const GetProviderList = data => request.post('/api/root/hospital/HospitalPurchaseOrder/getProviderList', data); //获取供应商列表
export const GetSalerList = data => request.post('/api/root/hospital/HospitalPurchaseOrder/getSalerList', data); //获取销售业务人员列表

// 供应商商品管理
export const ShopGoodsList = data => request.post('/api/manager/provider/ProviderProduct/index', data); //供应商商品列表
export const ShopGoodsAdd = data => request.post('/api/manager/provider/ProviderProduct/add', data); //供应商商品新增
export const ShopGoodsEdit = data => request.post('/api/manager/provider/ProviderProduct/edit', data); //供应商商品编辑
export const ShopGoodsView = data => request.post('/api/manager/provider/ProviderProduct/view', data); //供应商商品查看
export const ShopGoodsEditStatus = data => request.post('/api/manager/provider/ProviderProduct/changeStatus', data); //更改上下架状态
export const SetProductSort = data => request.post('/api/manager/provider/ProviderProduct/saveOrder', data); //更改商品排序

export const BannerDetail = data => request.post('/api/manager/provider/Banner/view', data); //
export const BannerEdit = data => request.post('/api/manager/provider/Banner/edit', data); //更改商品排序


// 获取商品库商品
export const StoreShopGoodsList = data => request.post('/api/manager/store/Goods/getList', data); //商品库列表
export const StoreShopGoodsView = data => request.post('/api/manager/store/Goods/view', data); //商品库查看
// 订单管理
export const OrderList = data => request.post('/api/manager/provider/ProviderProductOrder/index', data); //订单列表
export const OrderDetail = data => request.post('/api/manager/provider/ProviderProductOrder/view', data); //订单详情
export const GetOrderExpress = data => request.post('/api/manager/provider/ProviderProductOrder/getExpressCompanyList', data); //订单快递公司
export const OrderSend = data => request.post('/api/manager/provider/ProviderProductOrder/send', data); //订单发货


// 获取配置列表
export const GetConfigList = data => request.post('/api/root/base/OptionConfig/getList', data); 

export const GetProductCate = data => request.post('/api/root/store/ProductCate/getList', data); //获取新增药品与普通商品时的分类列表

// 分类管理
export const GetCateList = data => request.post('/api/root/store/ProductCate/index', data); //获取分类列表
export const CateAdd = data => request.post('/api/root/store/ProductCate/add', data); //新增分类
export const CateEdit = data => request.post('/api/root/store/ProductCate/edit', data); //编辑分类
export const ChangeCateStatus = data => request.post('/api/root/store/ProductCate/changeStatus', data); //更改分类状态
export const CateDelete = data => request.post('/api/root/store/ProductCate/del', data); //删除分类

// 品牌管理
export const GetProductBrandList = data => request.post('/api/root/store/ProductBrand/index', data); //品牌列表
export const GetProductBrandAdd = data => request.post('/api/root/store/ProductBrand/add', data); //品牌新增
export const GetProductBrandEdit = data => request.post('/api/root/store/ProductBrand/edit', data); //品牌编辑
export const GetProductBrandDel = data => request.post('/api/root/store/ProductBrand/del', data); //品牌删除



// 绑定管理
export const GetBindMedicalList = data => request.post('/api/manager/base/Sales/medicalSaleBySupplier',data); //绑定的药店列表
export const GetBindList = data => request.post('/api/manager/base/Sales/bindList',data); //绑定销售代表/经理列表
export const MedicalChangeSale = data => request.post('/api/manager/base/Sales/medicalChangeSale',data); //绑定销售代表/经理列表
export const ChangeSaleParent = data => request.post('/api/manager/base/Sales/changeSaleParent',data); //绑定销售代表/经理列表


// diy店铺
export const templateList = data => request.post('/api/manager/base/PageDiyTemplate/index',data); //获取diy模板列表
export const templateAdd = data => request.post('/api/manager/base/PageDiyTemplate/add',data); //diy模板新增
export const templateView = data => request.post('/api/manager/base/PageDiyTemplate/view',data); //diy模板详情
export const templateChangeStatus = data => request.post('/api/manager/base/PageDiyTemplate/changeStatus',data); //diy模板新增
export const templateDel = data => request.post('/api/manager/base/PageDiyTemplate/del',data); //diy模板删除
export const templateEdit = data => request.post('/api/manager/base/PageDiyTemplate/edit',data); //diy模板编辑

// 商品供应商商品管理
export const yxnShopGoodsList = data => request.post('/api/manager/yxn/YxnProduct/index', data); //供应商商品列表
export const yxnShopGoodsAdd = data => request.post('/api/manager/yxn/YxnProduct/add', data); //供应商商品新增
export const yxnShopGoodsEdit = data => request.post('/api/manager/yxn/YxnProduct/edit', data); //供应商商品编辑
export const yxnShopGoodsView = data => request.post('/api/manager/yxn/YxnProduct/view', data); //供应商商品查看
export const yxnShopGoodsEditStatus = data => request.post('/api/manager/yxn/YxnProduct/changeStatus', data); //更改上下架状态
export const yxnSetProductSort = data => request.post('/api/manager/yxn/YxnProduct/saveOrder', data); //更改商品排序

// 获取配置
export const getConfig = params => request.post('/api/manager/base/Base/getConfig', params);//

// 获取全部分类
export const getAllCateList = params => request.post('/api/manager/store/ProductCate/getList', params);//

// 查询物流信息
export const getExpressInfo = params => request.post('/api/manager/express/Express/search', params);//

// 售后/退货订单
export const afterSaleList = data => request.post('/api/manager/provider/ProviderBillAftersale/index', data); //列表
export const afterSaleDetail = data => request.post('/api/manager/provider/ProviderBillAftersale/view', data); //详情
export const afterSaleCheck = data => request.post('/api/manager/provider/ProviderBillAftersale/check', data); //审核
